package edu.zut.cs.software.cms.module.information.dao;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import edu.zut.cs.software.cms.base.dao.GenericDao;
import edu.zut.cs.software.cms.module.information.domain.Information;

public interface InformationDao extends GenericDao<Information, Long>{
	@Query(value="  SELECT COUNT(*) FROM `cms`.`t_information` WHERE `id`=?1 ",nativeQuery=true)
	int IfOneExist(@Param("id") Long id);
}
